import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { CommHttpService } from '../../../core/comm.http.service';
import { SERVERS_NAME } from '../../../config/config';
import { HttpService } from '../../../core/http.service';

@Injectable()
export class AppVersionService extends CommHttpService {

  protected preUrl = `${SERVERS_NAME.SECURITY_SERVER}sys/appUpdate/`;

  constructor(protected http: HttpService) {
    super(http);
  }

  change(data): Observable<any> {
    return this.http.post(data, `${this.preUrl}changeStatus`);
  }

}
